﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.SmartMecial.Services.WorkforceManage
{
    public class ReplaceTableService : IReplaceTableService
    {
        private readonly IBaseRepository<ReplaceTableModel> _replaceTableRep;

        public ReplaceTableService(IBaseRepository<ReplaceTableModel> replaceTableRep)
        {
            this._replaceTableRep = replaceTableRep;
        }

        public Task<List<ReplaceTableModel>> ReplaceTableShow()
        {
            var replaceTables = _replaceTableRep.GetAll();
            return Task.FromResult(replaceTables.ToList());
        }
    }
}
